import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path"

export default defineConfig({
  plugins: [vue()],
  server: {
    port: 5000, //自定义端口号
    proxy: {
      "/yunji-api": {
        target: "http://localhost:8084/",//Api地址
        changeOrigin: true,
      },
    }
  },
  resolve: {
    // 配置路径别名
    alias: {
      '@': path.resolve(__dirname, './src'),
    }
  },
})
